# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=s3cmd
pkgver=2.1.0
pkgrel=0
pkgdesc="Command line tool for managing Amazon S3 and CloudFront services"
url="https://github.com/s3tools/s3cmd"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 py3-dateutil py3-magic"
makedepends="python3-dev py3-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/s3tools/s3cmd/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b77b9cfc3cd4b349ac0293836f07191fedf66d5dd36a1a020214e771adfcbc848d33d60adfff9819f1b566c1db6c199394a537624a77cc334c857f2292bd1291  s3cmd-2.1.0.tar.gz"
